package com.udp.nml.example;

import org.apache.mina.core.buffer.IoBuffer;
import org.apache.mina.core.session.IoSession;

public class UDPUtils 
{
	public static void sendBytesOnSession(IoSession session, byte[] message)
	{
        IoBuffer buffer = IoBuffer.allocate(message.length);
        buffer.put(message);
        buffer.flip();
        
        session.write(buffer);
	}
}
